<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Basic RadioButton - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2>Basic RadioButton</h2>
	<form id="ff">
		<div style="margin-bottom:20px">
			<input class="easyui-radiobutton" name="fruit" value="Apple" label="Apple:">
		</div>
		<div style="margin-bottom:20px">
			<input class="easyui-radiobutton" id="man"  name="fruit" value="Orange" label="Orange:">
		</div>
		<div style="margin-bottom:20px">
			<input class="easyui-radiobutton"  name="fruit" value="Banana" label="Banana:">
		</div>
	</form>

	<form id="saveForm" method="post">
		<div class="easyui-dialog" id="addUserDlg" closed="true" >
			<input id="state1" name="state" value="1" type="radio" checked="checked" />是
			<input id="state2" name="state" value="-1" type="radio" />否
		</div>
	</form>
	<button onclick="openFrom()">打开</button>
<script>
	$('#man').radiobutton({
		checked: true
	});

	function openFrom() {
		$('#addUserDlg').dialog('open').dialog('setTitle', '新增商品类型');
		$('#addUserDlg').form('clear');
	}
</script>
</body>
</html>